package com.elephantgreen.util.zip;

/**
 * Create BinaryFileData.
 * 
 * @author Bishan
 *
 */
public class BinaryFileData {
	String fileName;
	byte[] data;

	/**
	 * Create new BinaryFileData object.
	 * 
	 * @param fileName filename to be used within the zip.
	 * @param data byte-array created by calling ZipFileUtil.fileToBytes method
	 */
	public BinaryFileData(String fileName, byte[] data) {
		this.fileName = fileName;
		this.data = data;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}

	public String toString() {
		return fileName + "," + data.length;
	}
}
